package com.java.module.quartz.util;

import org.quartz.DisallowConcurrentExecution;
import org.quartz.JobExecutionContext;
import com.java.module.quartz.domain.CronJob;

/**
 * 定时任务处理（禁止并发执行）
 * 
 * @author Administrator
 */
@DisallowConcurrentExecution
public class QuartzDisallowConcurrentExecution extends AbstractQuartzJob {

    @Override
    protected void doExecute(JobExecutionContext context, CronJob cronJob) throws Exception {
        JobInvokeUtil.invokeMethod(cronJob);
    }

}